package com.xb.algorithm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xb.algorithm.entity.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author xb
 * @descripton:
 * @date 2021/12/26
 */
@Mapper
public interface UserMapper extends BaseMapper<UserPO> {
    List<UserPO> getAll();

    @Select("select * from user where login_name=#{name} and passwd=#{pw}")
    UserPO getUser(@Param("name") String name, @Param("pw") String pw);
}
